home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970104-19970326
/
000335_news@columbia.edu _Mon Mar 3 11:22:11 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA05980
for <kermit.misc@watsun.cc.columbia.edu>; Mon, 3 Mar 1997 11:22:11 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA27771
for kermit.misc@watsun; Mon, 3 Mar 1997 11:22:10 -0500 (EST)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: It's possible receive files in background?
Date: 3 Mar 1997 16:22:08 GMT
Organization: Columbia University
Lines: 37
Message-ID: <5fetrg$bqe$1@apakabar.cc.columbia.edu>
References: <3316318D.7978@mics.msu.su> <5f7094$hc4$1@apakabar.cc.columbia.edu> <331A971A.753D@mics.msu.su>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:6674
In article <331A971A.753D@mics.msu.su>,
Andrew A. Ivanov <ivanov@mics.msu.su> wrote:
: Frank da Cruz wrote:
: > Probably C-Kermit is getting stuck because it wants to print a message
: > to stdout. If you start it with the -q option, it will be "quiet".
:
: Oh, I have already tried -q and many other swithes, I guess it wants
: read command from stdin (no script specified in command line).
:
OK, so specify a script file on the command line.
: > Now, let's assume there is a maximum amount of time that you want to
: > capture the data (let's say, 600 seconds), and there is a marker to show
: > the end of the data (let's say it's "End of Data").
:
: Hm.. Is it possible to not make any assumption about time (may be next
: data will be in next week)? It is not a file but simple continuous _log_
: without end marker.
:
If it was not a background session, then you could put Kermit into CONNECT
mode and use "log session" to record everything. But CONNECT only works in
the foreground because it must read from the keyboard (stdin) and write to
the screen (stdout).
You can use INPUT in the background, but INPUT must be given a timeout and
a termination string. If you want it to record for an indefinite amount of
time, use a loop, like:
set input echo off
set input timeout proceed
log session
while true { input 600 xxx }
To terminate the session, put the job in the foreground, Ctrl-C, and "close
session" (or just "exit").
- Frank